/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const logAnalysisRouter = {
  path: '/logAnalysis',
  component: Layout,
  redirect: '/logAnalysis/eventlog',
  name: 'logAnalysis',
  meta: {
    title: '日志分析',
    icon: 'form',
    roles:['operator','auditor','root']
  },
  children: [
    {
      path: 'eventLog',
      name: 'eventLog',
      component: () => import('@/views/logAnalysis/eventLog'),
      meta: { title: '事件日志', icon: 'dian' ,roles: ['operator','root']}
    },
    {
      path: 'synchronousLog',
      name: 'synchronousLog',
      component: () => import('@/views/logAnalysis/synchronousLog'),
      meta: { title: '同步日志', icon: 'dian' ,roles: ['operator','root']}
    },
    {
      path: 'storageLog',
      name: 'storageLog',
      component: () => import('@/views/logAnalysis/storageLog'),
      meta: { title: '转储日志', icon: 'dian' ,roles: ['operator','root']}
    },
    {
      path: 'operatingLog',
      name: 'operatingLog',
      component: () => import('@/views/logAnalysis/operatingLog'),
      meta: { title: '操作日志', icon: 'dian' ,roles: ['operator','root']}
    },
    {
      path: 'Parameter',
      component: () => import('@/views/audit/Parameter'),
      name: 'Parameter',
      meta: { title: '审计策略', icon: 'dian',roles: ['auditor']}
    },
    {
      path: 'virusIsolation',
      name: 'virusIsolation',
      component: () => import('@/views/logAnalysis/virusIsolation'),
      meta: { title: '隔离病毒', icon: 'dian' ,roles: ['operator','root']}
    },
    {
      path: 'auditLog',
      name: 'auditLog',
      component: () => import('@/views/logAnalysis/auditLog'),
      meta: { title: '审计日志', icon: 'dian',roles: ['auditor','root']  }
    },
  ]
}

export default logAnalysisRouter
